package com.homedo.odin.solution.model.request.mng;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * Created by liyi on 2018/5/23.
 */
@ApiModel(description = "Mng_白名单列表")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class MngUserSafeReqsListRequestBean extends BaseBean {


    @ApiModelProperty(value = "来源  1：前台申请，2：后台导入")
    @Range(min = 1, max = 2)
    private Integer source;

    @ApiModelProperty(value = "状态 0：待审核，1：审核通过，-1：审核不通过")
    @Range(min = -1, max = 1)
    private Integer status;

    @ApiModelProperty(value = "用户名或手机号")
    private String usernameOrMobile;


    @ApiModelProperty(value = "当前页码", required = true)
    @NotNull(message = "当前页码非法")
    @Min(value = 0, message = "当前页码非法")
    private Integer pageNum;

    @ApiModelProperty(value = "每页条数", required = true)
    @NotNull(message = "每页条数非法")
    @Min(value = 0, message = "每页条数非法")
    private Integer pageSize;
}
